Rainbow Coloring
   HOME

TheInfoList



OR:

In
graph theory In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, a
path A path is a route for physical travel – see Trail. Path or PATH may also refer to: Physical paths of different types * Bicycle path * Bridle path, used by people on horseback * Course (navigation), the intended path of a vehicle * Desire p ...
in an edge-colored graph is said to be rainbow if no color repeats on it. A graph is said to be rainbow-connected (or rainbow colored) if there is a rainbow path between each pair of its vertices. If there is a rainbow
shortest path In graph theory, the shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of its constituent edges is minimized. The problem of finding the shortest path between ...
between each pair of vertices, the graph is said to be strongly rainbow-connected (or strongly rainbow colored).


Definitions and bounds

The rainbow connection number of a graph G is the minimum number of colors needed to rainbow-connect G, and is denoted by \text(G). Similarly, the strong rainbow connection number of a graph G is the minimum number of colors needed to strongly rainbow-connect G, and is denoted by \text(G). Clearly, each strong rainbow coloring is also a rainbow coloring, while the converse is not true in general. It is easy to observe that to rainbow-connect any connected graph G, we need at least \text(G) colors, where \text(G) is the
diameter In geometry, a diameter of a circle is any straight line segment that passes through the center of the circle and whose endpoints lie on the circle. It can also be defined as the longest chord of the circle. Both definitions are also valid fo ...
of G (i.e. the length of the longest shortest path). On the other hand, we can never use more than m colors, where m denotes the number of edges in G. Finally, because each strongly rainbow-connected graph is rainbow-connected, we have that \text(G) \leq \text(G) \leq \text(G) \leq m. The following are the extremal cases: *\text(G) = \text(G) = 1 if and only if G is a
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
. *\text(G) = \text(G) = m if and only if G is a
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
. The above shows that in terms of the number of vertices, the upper bound \text(G) \leq n - 1 is the best possible in general. In fact, a rainbow coloring using n - 1 colors can be constructed by coloring the edges of a spanning tree of G in distinct colors. The remaining uncolored edges are colored arbitrarily, without introducing new colors. When G is 2-connected, we have that \text(G) \leq \lceil n/2 \rceil. Moreover, this is tight as witnessed by e.g. odd cycles.


Exact rainbow or strong rainbow connection numbers

The rainbow or the strong rainbow connection number has been determined for some structured graph classes: *\text(C_n) = \text(C_n) = \lceil n/2 \rceil, for each integer n \geq 4, where C_n is the
cycle graph In graph theory, a cycle graph or circular graph is a graph that consists of a single cycle, or in other words, some number of vertices (at least 3, if the graph is simple) connected in a closed chain. The cycle graph with vertices is called ...
. *\text(W_n) = 3, for each integer n \geq 7, and \text(W_n) = \lceil n/3 \rceil, for n \geq 3, where W_n is the
wheel graph A wheel is a circular component that is intended to rotate on an axle bearing. The wheel is one of the key components of the wheel and axle which is one of the six simple machines. Wheels, in conjunction with axles, allow heavy objects to be ...
.


Complexity

The problem of deciding whether \text(G) = 2 for a given graph G is
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by trying ...
. Because \text(G) = 2 if and only if \text(G) = 2, it follows that deciding if \text(G) = 2 is NP-complete for a given graph G.


Variants and generalizations

Chartrand, Okamoto and Zhang generalized the rainbow connection number as follows. Let G be an edge-colored nontrivial connected graph of order n. A tree T is a ''rainbow tree'' if no two edges of T are assigned the same color. Let k be a fixed integer with 2 \leq k \leq n. An edge coloring of G is called a ''k-rainbow coloring'' if for every set S of k vertices of G, there is a rainbow tree in G containing the vertices of S. The k-rainbow index \text_k(G) of G is the minimum number of colors needed in a k-rainbow coloring of G. A k-rainbow coloring using \text_k(G) colors is called a ''minimum k-rainbow coloring''. Thus \text_2(G) is the rainbow connection number of G. Rainbow connection has also been studied in vertex-colored graphs. This concept was introduced by Krivelevich and Yuster. Here, the rainbow vertex-connection number of a graph G, denoted by \text(G), is the minimum number of colors needed to color G such that for each pair of vertices, there is a path connecting them whose internal vertices are assigned distinct colors.


See also

*
Rainbow matching In the mathematical discipline of graph theory, a rainbow matching in an edge-colored graph is a matching in which all the edges have distinct colors. Definition Given an edge-colored graph , a rainbow matching in is a set of pairwise non-adja ...


Notes


References

*. *. *. *. *. *. *{{citation , last1 = Ekstein , first1 = Jan , last2 = Holub , first2 = Přemysl , last3 = Kaiser , first3 = Tomáš , last4 = Koch , first4 = Maria , last5 = Camacho , first5 = Stephan Matos , last6 = Ryjáček , first6 = Zdeněk , last7 = Schiermeyer , first7 = Ingo , title = The rainbow connection number of 2-connected graphs , journal = Discrete Mathematics , volume = 313 , issue = 19 , pages = 1884–1892 , year = 2013 , doi = 10.1016/j.disc.2012.04.022, arxiv = 1110.5736. Graph coloring